<a class="btn btn-green"  href="/admin/create/stock">Добавить акцию</a>
<br>
<?foreach ($this->stocks as $stock) :?>
    <?/** @var $stock Application_Model_Stock */?>
    <div class="stock">
        <h3 class="info-text"><?= $stock->getTitle(); ?></h3>
        <img class="icon" src="<?=$this->baseUrl(); ?>/i/stock/<?= $stock->getPhoto(); ?>" />
        <div class="description"><?= nl2br($stock->getDescription()); ?></div>

        <div class="status <? if ($stock->getIsActive()) :?>text-success<? else:?>info-text<?endif;?>">Акция <? if ($stock->getIsActive()) :?>включена<? else:?>выключена<?endif;?></div>
        <a class="btn btn-blue" href="/admin/edit/stock?id=<?= $stock->getId(); ?>">Редактировать</a>
        <a class="btn btn-red" href="/admin/delete/stock?id=<?= $stock->getId(); ?>">Удалить</a>
    </div>
<? endforeach; ?>

